<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      console.log(navigator);
      console.log(location);

      /*
      location.href
      1. 读：获取地址栏信息
      2. 写：修改地址栏信息，可以使用相对路径，和网络绝对路径（网址）
      */
      console.log(location.href);
      setTimeout(() => {
        // location.href = "https://www.bing.com";
        // location.href = "./1.html";
        // location.reload();
      }, 3000);
    </script>
  </body>
</html>
